#import <UIKit/UIKit.h>
@class TTCropImageViewController;

@protocol TTCropImageViewControllerDelegate <NSObject>

@optional
- (void)cropViewController:(TTCropImageViewController *)cropViewController didFinishCropStartX:(NSInteger)startX endX:(NSInteger)endX startY:(NSInteger)startY endY:(NSInteger)endY;
    
@end

/**
 *  自定义截取图片
 */
@interface TTCropImageViewController : UIViewController

// 需要展示的图片
@property (nonatomic, strong) UIImage *imageToCrop;
// 图片的介绍
@property (nonatomic, copy) NSString *instructions;
// delegate
@property (nonatomic, weak) id<TTCropImageViewControllerDelegate> delegate;

@end